// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
// import "@ass/icon/style.css";
// import "@ass/font/style.css";
// import "@ass/css/reset.min.css";
// import "@common/init/init.js";
import Vue from "vue";
import ElementUI from "element-ui";
import 'element-ui/lib/theme-chalk/index.css';
import App from "./App";
import router from "@pl/router";
// import taber from "@pl/tabs";
// import store from "@pl/vuex-store";
// import {
// 	service
// } from "@utils/apis";
// import $ from "jquery";

Vue.use(ElementUI);

// Vue.config.productionTip = false

router.beforeEach((to, from, next) => {
	// let {
	// 	isLogin
	// } = store.getters;
	// if (isLogin && to.path.indexOf("/home") < 0) {
	// 	return next("/home");
	// }
	// if (!isLogin && to.path != "/login") {
	// 	return next("/login");
	// }
	if (to.path != "/login") {
		return next("/login");
	}
	return next();
});

// Vue.prototype.$http = service; //其他页面在使用axios的时候直接  this.$http就可以了

new Vue({
	el: "#app",
	// store,
	// taber,
	router,
	template: "<App/>",
	components: {
		App
	},
	render: h => h(App)
});